<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div class="box" style="background: green; width: 100px;height: 200px;" onclick="alter(2222)">
         222
    </div>
</body>
</html>